package com.easychat.entity.enums;

/**
 * @Author Dongdong
 * @注释
 */

public enum UserContactApplyStatusEnum {
    INIT(0,"待处理"),

    PASS(1,"已同意"),

    REFUSE(2,"拒绝"),

    BLACK(3,"已拉黑");


    private Integer status;
    private String desc;

    UserContactApplyStatusEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public static UserContactApplyStatusEnum getByStatus(Integer status) {
        for (UserContactApplyStatusEnum item : UserContactApplyStatusEnum.values()) {
            if (item.getStatus().equals(status)) {
                return item;
            }
        }
        throw new RuntimeException("没有找到枚举");
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
